str='hello'
for i in str:
    if i=='l':
        break
    print(i)
print('=====================')
for i in range(3):
    name=input('请输入名字：')
    pwd=input('请输入密码：')
    if name=='lyl' and pwd=='666666':
        print('登录成功！')
        break
    else:
        if i<2:
            print('您还有',2-i,'机会！')
else:
    print('都失败了！')